const path = require('path')
module.exports = {
	runtimeCompiler: true, //使用compiler版本
	productionSourceMap: false,
	publicPath: process.env.NODE_ENV === 'production' ? '/gabriel-ui': '/', 
	pages: {
		index: {
			entry: 'examples/main.js',
			template: 'public/index.html',
			filename: 'index.html'
		},
		demo: {
			entry: 'examples/demo.js',
			template: 'public/demo.html',
			filename: 'demo.html'
		}
	},
	chainWebpack: config => {
		config.module
			.rule('js')
			.include.add(path.resolve(__dirname, 'packages')).end()
			// .use('babel')
			// .loader('babel-loader')
			// .tap(options => {
			// 	return options
			// })
	}
}
